<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="_template.xhtml">
	<ui:define name="corpo">

	<div id="conteudo">
		<h:form>

			<fieldset>
				<legend>Dados do Usuario</legend>

				<h:outputLabel value="Login: " for="login" />
				<h:inputText id="login" value="#{usuarioBean.usuario.login}">
					<f:ajax event="change" />
				</h:inputText>

				<h:outputLabel value="Senha: " for="senha" />
				<h:inputSecret id="senha" value="#{usuarioBean.usuario.senha}">
					<f:ajax event="change" />
				</h:inputSecret>

				<h:commandButton value="Gravar" action="#{usuarioBean.grava}">
					<f:ajax render="@all" />
				</h:commandButton>

			</fieldset>	

		</h:form>
	</div>
	
	<div id="rodape">Copyrigth 2011 Leonardo Holanda</div>
	
	</ui:define>
</ui:composition>
	
</html>
